<%= render 'shared/error_messages' %>

<%= f.hidden_field :user_group_id %>

<table>
  <tr>
    <td id="register_pos"><%= f.label :first_name %></td>
    <td><%= f.text_field :first_name, :id => "text_field_settings" %></td>
  </tr>
  <tr>
    <td id="register_pos"><%= f.label :last_name %></td>
    <td><%= f.text_field :last_name, :id => "text_field_settings" %></td>
  </tr>
  <tr>
    <td id="register_pos"><%= f.label :matriculation_number %></td>
    <td><%= f.text_field :matriculation_number, :id => "text_field_settings" %></td>
  </tr>
  <tr>
    <td id="register_pos"><%= f.label :email %></td>
    <td><%= f.text_field :email, :id => "text_field_settings" %></td>
  </tr>
  <tr>
    <td id="register_pos"><%= f.label :password %></td>
    <td><%= f.text_field :password, :id => "text_field_settings" %></td>
  </tr>
  <tr>
    <td id="register_pos"><%= f.label :password_confirmation %></td>
    <td><%= f.text_field :password_confirmation, :id => "text_field_settings" %></td>
  </tr>
  <tr>
    <td id="register_pos"><%= f.label :about %></td>
    <td><%= f.text_area :about, :id => "about_settings" %></td>
  </tr>
  <tr>
    <td id="register_pos"><%= f.label :preferred_locale %></td>
    <td><%= f.select :preferred_locale, 
			options_for_select([['English', 'en'], ['German', 'de']], @user.preferred_locale), 
			{ include_blank: true }, :id => "language_field_settings" %></td>
  </tr>
</table>